﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PostUnAuditList.aspx.cs"
    Inherits="StudentManage.Web.Admin.Management.PostManage.PostUnAuditList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register src="/Admin/PageHead/UC_Head.ascx" tagname="UC_Head" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <uc1:UC_Head ID="UC_Head1" runat="server" />
<%--<script src="../../../js/jquery-1.8.3.min.js" type="text/javascript"></script>--%>
    <script type="text/javascript">
        $(document).ready(function () {
            var dlgAudit = $("#dialog-form-audit").dialog({
                autoOpen: false,
                height: 'auto',
                width: 'auto',
                modal: true,
                buttons: {
                    通过: function () {
                        var container = $("#dialog-form-audit iframe").first().contents();
                        if (container.length == 0)
                            container = $("#dialog-form-audit");

                        btnclick();
                        container.find("input[type=submit]").get(0).click();
                    },
                    不通过: function () {
                        if (sp.page.backvalue != '-1') {
                            location.href = location.href.split('?')[0] + "?backvalue=" + sp.page.backvalue;
                        }
                        $(this).dialog("close");
                    },
                    取消: function () {
                        if (sp.page.backvalue != '-1') {
                            location.href = location.href.split('?')[0] + "?backvalue=" + sp.page.backvalue;
                        }
                        $(this).dialog("close");
                    }
                },
                close: function () { }
            });
            dlgAudit.parent().appendTo("#dialog_target");
        });
        function ShowdlgAudit() {
            $("#dialog-form-audit").dialog('open');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="HidProjectId" runat="server" Value="" />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="17" height="29" valign="top" background="../images/mail_leftbg.gif">
                <img src="../../images/left-top-right.gif" width="17" height="29" />
            </td>
            <td height="29" valign="top" background="../images/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                    <tr>
                        <td height="31">
                            <div class="titlebt">
                                岗位列表</div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="16" valign="top" background="../images/mail_rightbg.gif">
                <img src="../../images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="../../images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td valign="top" bgcolor="#F7F8F9">
                <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="13" valign="top">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="left_txt">
                                        当前位置：岗位列表
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" bgcolor="#CCC">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" style="padding: 10px 0px;">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" node-type="header_table">
                                            <tr>
                                                <td align="right" style="width: 60px;">
                                                    部门名称：
                                                </td>
                                                <td style="width: 100px;">
                                                    <asp:DropDownList ID="Drop_Department" runat="server">
                                                    </asp:DropDownList>
                                                </td>
                                                <td align="right" style="width: 80px;">
                                                    岗位分类：
                                                </td>
                                                <td style="width: 100px;">
                                                    <asp:DropDownList ID="Drop_ProjectType" runat="server">
                                                    </asp:DropDownList>
                                                </td>
                                                <td align="right" style="width: 80px;">
                                                    职位名称：
                                                </td>
                                                <td style="width: 200px;">
                                                    <asp:TextBox ID="txt_title" runat="server"></asp:TextBox>
                                                </td>
                                                <td align="left">
                                                    <asp:Button ID="Btn_Search" runat="server" Style="cursor: pointer;" Text="查询" OnClick="Btn_Search_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="1" cellspacing="0" cellpadding="0" class="table120" style="border-collapse: collapse;">
                                            <thead class="nowtable">
                                                <tr>
                                                    <th style="width: 40px; height: 25px; line-height: 25px;">
                                                        序号
                                                    </th>
                                                    <th>
                                                        部门名称
                                                    </th>
                                                    <th style="width: 150px;">
                                                        职位名称
                                                    </th>
                                                    <th>
                                                        岗位性质
                                                    </th>
                                                    <th>
                                                        负责人
                                                    </th>
                                                    <th>
                                                        联系电话
                                                    </th>
                                                    <th>
                                                        需求人数
                                                    </th>
                                                    <th style="width: 150px;">
                                                        发布时间
                                                    </th>
                                                    <th style="width: 100px;">
                                                        所属学院
                                                    </th>
                                                    <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.审批), User.Identity.Name))
                                                    {%><th style="width: 60px;">审批</th><% }%>
                                                    <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.修改), User.Identity.Name))
                                                    {%><th style="width: 60px;">修改</th><% }%>
                                                    <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.删除), User.Identity.Name))
                                                    {%><th style="width: 60px;">删除</th><% }%>
                                                </tr>
                                            </thead>
                                            <tbody id="UserTbody">
                                                <asp:Repeater ID="RepPostList" runat="server" OnItemCommand="RepPostList_ItemCommand">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td>
                                                                <%=GetXN()%>
                                                            </td>
                                                            <td>
                                                                <%#GetDepartmentName(Eval("Departmentid").ToString())%>
                                                            </td>
                                                            <td>
                                                                <%#Eval("Title")%>
                                                            </td>
                                                            <td>
                                                                <%#GetPositonName(Eval("PositionTypeId").ToString())%>
                                                            </td>
                                                            <td>
                                                                <%#Eval("FuZheRenName")%>
                                                            </td>
                                                            <td>
                                                                <%#Eval("Tel")%>
                                                            </td>
                                                            <td>
                                                                <%#Eval("RecruitCount")%>
                                                            </td>
                                                            <td>
                                                                <%#Eval("AddTime")%>
                                                            </td>
                                                            <td><%#GetXYName(Eval("College").ToString())%></td>
                                                            <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.审批), User.Identity.Name))
                                                            {%><td>
                                                                <asp:Button ID="Btn_Audit" runat="server" CssClass="RepBtnOk" CommandArgument='<%#Eval("id")%>'
                                                                    CommandName="Audit" />
                                                            </td><% }%>
                                                            <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.修改), User.Identity.Name))
                                                            {%><td>
                                                                <a href="PostEdit.aspx?id=<%#Eval("id")%>&TypeId=<%=Request.QueryString["TypeId"].ToString()%>">
                                                                    <img src="../../images/file.gif" width="16" height="16" /></a>
                                                            </td><% }%>
                                                            <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.删除), User.Identity.Name))
                                                            {%><td>
                                                                <asp:Button ID="Btn_Del" runat="server" OnClientClick="return confirm('确定删除？');"
                                                                    CssClass="RepBtnDel" CommandArgument='<%#Eval("id")%>' CommandName="Del" />
                                                            </td><% }%>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>
                                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="10" FirstPageText="首页"
                                            LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" ShowPageIndex="true"
                                            OnPageChanged="AspNetPager1_PageChanged">
                                        </webdiyer:AspNetPager>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td background="../../images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="middle" background="../images/mail_leftbg.gif">
                <img src="../../images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="../../images/buttom_bgs.gif">
                <img src="../../images/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="../images/mail_rightbg.gif">
                <img src="../../images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>
    <div class="sp-dialog-box" id="dialog-form-audit" style="display: none;" title="岗位详细">
        <div style="width: 650px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
                <tr>
                    <td align="right" style="width: 80px; font-weight: 600;">
                        部门名称：
                    </td>
                    <td>
                        <asp:Label ID="lab_Departmen" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="width: 80px; font-weight: 600;">
                        职位性质：
                    </td>
                    <td>
                        <asp:Label ID="lab_PositionType" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        负责老师：
                    </td>
                    <td>
                        <asp:Label ID="lab_FuZheRenName" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        联系电话：
                    </td>
                    <td style="">
                        <asp:Label ID="lab_Tel" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: 600;">
                        职位名称：
                    </td>
                    <td>
                        <asp:Label ID="lab_title" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        需求人数：
                    </td>
                    <td>
                        <asp:Label ID="lab_RecruitCount" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        发布人：
                    </td>
                    <td>
                        <asp:Label ID="lab_CreateUser" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        发布时间：
                    </td>
                    <td>
                        <asp:Label ID="lab_Addtime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="top" style="font-weight: 600;">
                        岗位职责及要求：
                    </td>
                    <td colspan="7">
                        <asp:Label ID="lab_Contents" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <asp:Button Text="提交" runat="server" Style="display: none;" CssClass="die" ID="btPost"
                OnClick="btPost_Click" />
        </div>
    </div>
    <div id="dialog_target">
    </div>
    </form>
</body>
</html>
